package com.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
public class CArticle {
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String title;
    private String keywords;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long typeId;
    private String content;
    private String contentUrl;
    private Date publishTime;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userNum;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentCount;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long city;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long managerNum;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long star;
    private String picturePath;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long praiseCount;
}
